import { T as Thenable, h as RpcFunctionAgentOptions, s as RpcDump, x as RpcFunctionSetupResult } from "../types-BkkQ0Txg.mjs"; import * as v from "valibot"; //#region src/recipes/open-helpers.d.ts /** * Prebuilt RPC action that opens a file in the user's configured editor. * * Registered name: `devframe:open-in-editor`. * * ```ts * import { openInEditor } from 'devframe/recipes/open-helpers' * * defineDevframe({ * id: 'my-tool', * name: 'My Tool', * setup(ctx) { * ctx.rpc.register(openInEditor) * }, * }) * ``` */ declare const openInEditor: { name: "devframe:open-in-editor"; type?: "action" | undefined; cacheable?: boolean; args: readonly [v.StringSchema]; returns: v.VoidSchema; jsonSerializable?: boolean; agent?: RpcFunctionAgentOptions; setup?: ((context: undefined) => Thenable>) | undefined; handler?: ((args_0: string) => void) | undefined; dump?: RpcDump<[string], void, undefined> | undefined; snapshot?: boolean; __cache?: WeakMap>> | undefined; __promise?: Thenable> | undefined; }; /** * Prebuilt RPC action that reveals a path in the OS file explorer. * * Registered name: `devframe:open-in-finder`. * * ```ts * import { openInFinder } from 'devframe/recipes/open-helpers' * * ctx.rpc.register(openInFinder) * ``` */ declare const openInFinder: { name: "devframe:open-in-finder"; type?: "action" | undefined; cacheable?: boolean; args: readonly [v.StringSchema]; returns: v.VoidSchema; jsonSerializable?: boolean; agent?: RpcFunctionAgentOptions; setup?: ((context: undefined) => Thenable>) | undefined; handler?: ((args_0: string) => void) | undefined; dump?: RpcDump<[string], void, undefined> | undefined; snapshot?: boolean; __cache?: WeakMap>> | undefined; __promise?: Thenable> | undefined; }; /** * Convenience array bundling both helpers so callers can register them * in a single `forEach`. * * ```ts * import { openHelpers } from 'devframe/recipes/open-helpers' * * openHelpers.forEach(fn => ctx.rpc.register(fn)) * ``` */ declare const openHelpers: readonly [{ name: "devframe:open-in-editor"; type?: "action" | undefined; cacheable?: boolean; args: readonly [v.StringSchema]; returns: v.VoidSchema; jsonSerializable?: boolean; agent?: RpcFunctionAgentOptions; setup?: ((context: undefined) => Thenable>) | undefined; handler?: ((args_0: string) => void) | undefined; dump?: RpcDump<[string], void, undefined> | undefined; snapshot?: boolean; __cache?: WeakMap>> | undefined; __promise?: Thenable> | undefined; }, { name: "devframe:open-in-finder"; type?: "action" | undefined; cacheable?: boolean; args: readonly [v.StringSchema]; returns: v.VoidSchema; jsonSerializable?: boolean; agent?: RpcFunctionAgentOptions; setup?: ((context: undefined) => Thenable>) | undefined; handler?: ((args_0: string) => void) | undefined; dump?: RpcDump<[string], void, undefined> | undefined; snapshot?: boolean; __cache?: WeakMap>> | undefined; __promise?: Thenable> | undefined; }]; //#endregion export { openHelpers, openInEditor, openInFinder };