@sanity/desk-tool
Version:
Tool for managing all sorts of content in a structured manner
19 lines • 681 B
TypeScript
import { PaneNode, RouterPanes } from './types';
import { LOADING_PANE } from './constants';
export declare function setActivePanes(panes: Array<PaneNode | typeof LOADING_PANE>): void;
/**
* This function looks at the _active panes_ to resolve an intent. this type of
* intent resolution is faster and does not cause the panes to reset
*
* @internal
*/
export declare function getIntentState(intentName: string, params: Record<string, string>, currentState: {
panes?: RouterPanes;
} | undefined, payload: unknown): {
panes: RouterPanes;
} | {
intent: string;
params: Record<string, string>;
payload: unknown;
};
//# sourceMappingURL=getIntentState.d.ts.map