export declare type Fetch = typeof fetch; /** * Error format * * */ export declare type MongoDBError = { message: string; details: string; hint: string; code: string; }; /** * Response format * * */ interface PostgrestResponseBase { status: number; statusText: string; } export interface PostgrestResponseSuccess extends PostgrestResponseBase { error: null; data: T; count: number | null; } export interface PostgrestResponseFailure extends PostgrestResponseBase { error: MongoDBError; data: null; count: null; } export declare type PostgrestSingleResponse = PostgrestResponseSuccess | PostgrestResponseFailure; export declare type PostgrestMaybeSingleResponse = PostgrestSingleResponse; export declare type PostgrestResponse = PostgrestSingleResponse; export declare type GenericTable = { Row: Record; Insert: Record; Update: Record; }; export declare type GenericUpdatableView = { Row: Record; Insert: Record; Update: Record; }; export declare type GenericNonUpdatableView = { Row: Record; }; export declare type GenericView = GenericUpdatableView | GenericNonUpdatableView; export declare type GenericFunction = { Args: Record; Returns: unknown; }; export declare type GenericSchema = { Tables: Record; Views: Record; Functions: Record; }; export declare type Prettify = { [K in keyof T]: T[K]; } & {}; export {}; //# sourceMappingURL=types.d.ts.map