import type { DataSourceFn } from '../../../libs/integration-data-source'; import type * as Models from '../models'; declare global { export namespace AccountDomain { type Account = Models.Account; type NewAccount = Omit; } } export declare type AccountDataSource = { create: DataSourceFn; destroy: DataSourceFn<{ wasSuccess: boolean; }>; fetch: DataSourceFn; login: DataSourceFn<{ wasSuccess: boolean; }, { password: string; username: string; }>; logout: DataSourceFn<{ wasSuccess: boolean; }>; resetPassword: DataSourceFn<{ wasSuccess: boolean; }, { email: string; }>; update: DataSourceFn; updatePassword: DataSourceFn<{ wasSuccess: boolean; }, { currentPassword: string; password: string; }>; };