import type { Page, PageRequest } from "../shared/page";
import type { {{ pascal }}, {{ pascal }}Draft } from "./model";
/** The port the screens call. Every method rejects with the `{{ pascal }}Error` the API answered. */
export interface {{ pascal }}Repository {
list(page: PageRequest): Promise<Page<{{ pascal }}>>;
get(id: string): Promise<{{ pascal }}>;
create(draft: {{ pascal }}Draft): Promise<{{ pascal }}>;
update(id: string, draft: {{ pascal }}Draft): Promise<{{ pascal }}>;
remove(id: string): Promise<void>;
}