import { z } from "zod"; import type { CustomTabActionResult as ProtoCustomTabActionResult, CustomTabConfig as ProtoCustomTabConfig, CustomTabGetCustomTabsOutput as ProtoGetCustomTabsOutput, CustomTabNameI18n as ProtoCustomTabNameI18n } from "../gen/channel/app/sdk/v1/extension.js"; type ProtoBacked = T & Proto; /** * I18n name for custom tab */ export declare const CustomTabNameI18nSchema: z.ZodObject<{ name: z.ZodString; }, "strip", z.ZodTypeAny, { name: string; }, { name: string; }>; export type CustomTabNameI18n = ProtoBacked, ProtoCustomTabNameI18n>; /** * Custom tab metadata schema returned from extension.customtab.metadata.getCustomTabs. */ export declare const CustomTabConfigSchema: z.ZodObject<{ /** * Tab name (displayed in the Desk UI) */ name: z.ZodString; /** * App function invoked when the custom tab is opened. */ actionFunctionName: z.ZodString; /** * System version used when invoking custom tab functions */ systemVersion: z.ZodOptional; /** * i18n name map keyed by language code (e.g., "ko", "en", "ja") */ nameI18nMap: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { name: string; actionFunctionName: string; systemVersion?: string | undefined; nameI18nMap?: Record | undefined; }, { name: string; actionFunctionName: string; systemVersion?: string | undefined; nameI18nMap?: Record | undefined; }>; export type CustomTabConfig = ProtoBacked, ProtoCustomTabConfig>; /** * Metadata response schema for custom tab registration */ export declare const GetCustomTabsOutputSchema: z.ZodObject<{ customTabs: z.ZodArray; /** * i18n name map keyed by language code (e.g., "ko", "en", "ja") */ nameI18nMap: z.ZodOptional>>; }, "strip", z.ZodTypeAny, { name: string; actionFunctionName: string; systemVersion?: string | undefined; nameI18nMap?: Record | undefined; }, { name: string; actionFunctionName: string; systemVersion?: string | undefined; nameI18nMap?: Record | undefined; }>, "many">; }, "strip", z.ZodTypeAny, { customTabs: { name: string; actionFunctionName: string; systemVersion?: string | undefined; nameI18nMap?: Record | undefined; }[]; }, { customTabs: { name: string; actionFunctionName: string; systemVersion?: string | undefined; nameI18nMap?: Record | undefined; }[]; }>; export type GetCustomTabsOutput = ProtoBacked, ProtoGetCustomTabsOutput>; /** * Custom tab action result schema — matches AppStore action payloads. */ export declare const CustomTabActionResultSchema: z.ZodObject<{ type: z.ZodString; attributes: z.ZodOptional>; }, "strict", z.ZodTypeAny, { type: string; attributes?: Record | undefined; }, { type: string; attributes?: Record | undefined; }>; export type CustomTabActionResult = ProtoBacked, ProtoCustomTabActionResult>; export {}; //# sourceMappingURL=customtab.d.ts.map