import URLEndpoint from '../Core/Http/URLEndpoint';
export interface SingleEntityCRUDService<T> {
    create?(delta: Partial<T>): Promise<Partial<T>>;
    get(): Promise<Partial<T>>;
    update?(delta: Partial<T>): Promise<Partial<T>>;
    delete?(): Promise<void | boolean>;
}
export interface MultipleEntityCRUDService<T, KeyType = number> {
    create?(delta: Partial<T>): Promise<Partial<T>>;
    get(id: KeyType): Promise<Partial<T>>;
    update?(id: KeyType, delta: Partial<T>): Promise<Partial<T>>;
    delete?(id: KeyType): Promise<void | boolean>;
}
export interface Service {
    endpoint: URLEndpoint;
}
export type DefaultResponse = {
    success: boolean;
    rc: number;
    message: string | Record<string, any>;
};
