import { type Accessor, type JSX } from 'solid-js'; import type { ToolCallPart } from '@conciv/protocol/chat-message-types'; import type { ToolViewCtx } from '@conciv/protocol/tool-view-types'; export type PermissionDecision = 'approved' | 'denied' | undefined; type PermissionContextValue = { pending: Accessor; decision: Accessor; rememberable: Accessor; approve: () => void; approveForSession: () => void; reject: () => void; }; export declare function usePermission(): PermissionContextValue; declare function Root(props: { part: ToolCallPart; ctx: ToolViewCtx; children: JSX.Element; }): JSX.Element; export declare const Permission: typeof Root & { Root: typeof Root; }; export {}; //# sourceMappingURL=permission.d.ts.map