@sanity/desk-tool
Version:
Tool for managing all sorts of content in a structured manner
46 lines • 1.18 kB
TypeScript
import { Observable } from 'rxjs';
import { RouterPaneGroup } from './types';
/**
* @internal
*/
export declare const isSaveHotkey: (event: KeyboardEvent) => boolean;
interface GetIntentRouteParamsOptions {
id: string;
type?: string;
templateName?: string;
payloadParams?: Record<string, unknown>;
}
/**
* @internal
*/
export declare function getIntentRouteParams({ id, type, payloadParams, templateName, }: GetIntentRouteParamsOptions): {
intent: 'edit';
params: {
id: string;
type?: string;
templateName?: string;
};
payload: Record<string, unknown> | undefined;
};
/**
* @internal
*/
export declare function getWaitMessages(path: string[]): Observable<string>;
/**
* @internal
*/
export declare function toState(pathSegment: string): RouterPaneGroup[];
/**
* @internal
*/
export declare function toPath(panes: RouterPaneGroup[]): string;
/**
* @internal
*/
export declare function legacyEditParamsToState(params: string): Record<string, unknown>;
/**
* @internal
*/
export declare function legacyEditParamsToPath(params: Record<string, unknown>): string;
export {};
//# sourceMappingURL=helpers.d.ts.map