export declare type TypedUsePush = (url: string, opts: UsePushOptions) => UsePushResponse; export interface PushState { fetching: boolean; data?: T; error?: Error; } interface UsePushOptions { domains: D[]; baseUrl?: string; fetchOptions?: RequestInit; } declare type UsePushResponse = [PushState, () => Promise, () => void]; /** Hook for executing push requests (POST, PUT, DELETE, etc.). */ export declare const usePush: (url: string, opts: UsePushOptions) => [PushState, () => Promise, () => void]; export {};