import type { Description, Icon, RolesHierarchy, UserRole } from '@aeriajs/types'; import type { PromptOption } from '../behavior/index.js'; import type { builtinFunctions } from '@aeriajs/builtins'; import { Result } from '@aeriajs/types'; type PromptAnswer = { name: string; action: PromptOption; }; export type Toast = { text: string; icon?: Icon; itr: number; idx: number; date: Date; }; export declare const meta: (context: import("@aeria-ui/state-management").StoreContext, config?: unknown) => { descriptionsLoaded: boolean; descriptions: Record; roles: UserRole[]; rolesHierarchy: { root: boolean | readonly UserRole[]; unauthenticated: boolean | readonly UserRole[]; } | undefined; isLoading: boolean; globalIsLoading: boolean; theme: string; themeOverride: string; view: { title: string; layout: string; }; menu: { visible: boolean; }; modal: { visible: boolean; title: string; body: string; component: string; details: {}; }; prompt: { visible: boolean; title: string; body: string; options: Record; }; toasts: { text: string; icon?: Icon | undefined; itr: number; idx: number; date: Date; }[]; } & { $id: "meta"; $actions: { describe(props?: Parameters[0]): Promise<{ readonly _tag: "Error"; readonly error: Result.Error; readonly result: undefined; } | { readonly _tag: "Result"; readonly error: undefined; readonly result: { descriptions: Record; roles?: UserRole[]; auth?: Partial<({ user: import("mongodb").WithId; } & Omit> & { user: never; token: {} & Omit> & { type: "bearer"; content: string; }, never>; }, "user">) | ({} & Omit> & { user: {} & Omit> & { _id: null; name: string; roles: string[]; email: string; active: boolean; }, never>; token: {} & Omit> & { type: string; content: string; }, never>; }, never>) | undefined>; router?: unknown; rolesHierarchy?: RolesHierarchy; }; }>; ask(props: { action: (params: unknown) => unknown; params?: unknown; title?: string; body?: string; }): Promise; spawnPrompt(props: { title?: string; body?: string; options: Record; }): Promise; fulfillPrompt(answer: string, action: PromptOption): void; spawnModal(props: Partial>): void; spawnToast(props: { text: string; icon?: Icon; }): void; popToast(itr?: number): void; saveTheme(theme?: string): void; }; $functions: Record unknown>; }; export {};