export declare type Fetch = typeof fetch; /** * Error format * * {@link https://postgrest.org/en/stable/api.html?highlight=options#errors-and-http-status-codes} */ export declare type PostgrestError = { message: string; details: string; hint: string; code: string; }; /** * Response format * * {@link https://github.com/supabase/supabase-js/issues/32} */ interface PostgrestResponseBase { status: number; statusText: string; } export interface PostgrestResponseSuccess extends PostgrestResponseBase { error: null; data: T; count: number | null; } export interface PostgrestResponseFailure extends PostgrestResponseBase { error: PostgrestError; 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