import type { PosStoreRepository } from '../domain/ports.js';
import type { PosStore, ListStoresOptions } from '../domain/store.js';

export class ListStoresUseCase {
  constructor(private readonly storeRepo: PosStoreRepository) {}

  async execute(options?: ListStoresOptions): Promise<{ stores: PosStore[]; total: number }> {
    return this.storeRepo.list(options);
  }
}
