export declare const isServer: boolean; import * as React from 'react'; interface DataTransformer { serialize: (object: any) => any; deserialize: (object: any) => any; } interface HydrationStreamContext { id: string; stream: { /** * **Server method** * Push a new entry to the stream * Will be ignored on the client */ push: (...shape: Array) => void; }; } export interface HydrationStreamProviderProps { children: React.ReactNode; /** * Optional transformer to serialize/deserialize the data * Example devalue, superjson et al */ transformer?: DataTransformer; /** * **Client method** * Called in the browser when new entries are received */ onEntries: (entries: Array) => void; /** * **Server method** * onFlush is called on the server when the cache is flushed */ onFlush?: () => Array; /** * A nonce that'll allow the inline script to be executed when Content Security Policy is enforced */ nonce?: string; } export declare function createHydrationStreamProvider(): { Provider: (props: { children: React.ReactNode; /** * Optional transformer to serialize/deserialize the data * Example devalue, superjson et al */ transformer?: DataTransformer; /** * **Client method** * Called in the browser when new entries are received */ onEntries: (entries: Array) => void; /** * **Server method** * onFlush is called on the server when the cache is flushed */ onFlush?: () => Array; /** * A nonce that'll allow the inline script to be executed when Content Security Policy is enforced */ nonce?: string; }) => import("react/jsx-runtime").JSX.Element; context: React.Context>; }; export {}; //# sourceMappingURL=HydrationStreamProvider.d.ts.map