import React from 'react';
import { SeedNode } from '../../queries/seedQuery.js';
/**
* The available menu locations that nodes can be added to.
*/
export type MenuLocation = 'primary' | 'secondary';
/**
* A single Faust Toolbar node.
*/
export type FaustToolbarNode = {
/**
* The identifier for this Toolbar Node.
* Used to create each Toolbar Node's id. `#wp-admin-bar-{id}`
*/
id: string;
/**
* The available menu locations that nodes can be added to.
*/
location: MenuLocation;
/**
* The JSX component to load.
* This will be rendered inside of an `
`.
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/li
*/
component: React.ReactElement;
/**
* Additional classNames for the Toolbar Node ``.
*/
additionalClassNames?: string;
};
/**
* An array of toolbar nodes.
*/
export type FaustToolbarNodes = FaustToolbarNode[];
/**
* Toolbar context.
*/
export type FaustToolbarContext = {
seedNode?: SeedNode;
};
/**
* Toolbar props.
*/
export type ToolbarProps = {
seedNode?: SeedNode | null;
};
/**
* The component to actually render the toolbar. At this point we can assume
* there is a proper authenticated user.
*/
export declare function AuthenticatedToolbar({ seedNode }: ToolbarProps): React.JSX.Element;
/**
* With an authenticated user, make a request for the viewer in WPGraphQL and
* get the user' preference whether to display the toolbar.
*/
export declare function ToolbarAwaitUser({ seedNode }: ToolbarProps): React.JSX.Element | null;
/**
* Renders a Toolbar that is based on WordPress' own toolbar.
*/
export declare function Toolbar({ seedNode }: ToolbarProps): React.JSX.Element | null;