import * as React from 'react';
export declare const EXTRACT_ID: unique symbol;
interface SerializeProps<T> {
    data(): T;
}
interface WithSerializedProps<T> {
    children(data?: T): React.ReactNode;
}
export declare function createSerializer<T>(id: string): {
    Serialize: ({ data }: SerializeProps<T>) => JSX.Element;
    WithSerialized: ({ children }: WithSerializedProps<T>) => JSX.Element;
};
export {};
