import { Aborter } from './aborter';
import { CurrentUser } from './types';
export declare function createCurrentUserHook({ projectId }: {
    projectId: string;
    dataset?: string;
}): () => {
    data: CurrentUser | null | undefined;
    error: Error | undefined;
    loading: boolean;
};
export declare function getCurrentUser(projectId: string, abort: Aborter, token?: string): Promise<CurrentUser | null>;
