import { z } from "zod"; import type { AppNotebook as ProtoAppNotebook, NotebookCell as ProtoNotebookCell, NotebookGetNotebooksInput as ProtoGetNotebooksInput, NotebookGetNotebooksOutput as ProtoGetNotebooksResponse, NotebookLayoutColumn as ProtoNotebookLayoutColumn, NotebookLayoutRow as ProtoNotebookLayoutRow, NotebookPayload as ProtoNotebookPayload, NotebookTab as ProtoNotebookTab } from "../gen/channel/app/sdk/v1/extension.js"; import type { Context } from "../types/context.js"; import type { ExtensionDefinition } from "../types/extension.js"; type ProtoBacked = T & Proto; export declare const NotebookCellTypeSchema: z.ZodEnum<["markdown", "sql", "python", "input", "chart", "table", "single_value"]>; export type NotebookCellType = ProtoBacked, ProtoNotebookCell["type"]>; export declare const NotebookInitialVisibilitySchema: z.ZodEnum<["visible", "hidden"]>; export type NotebookInitialVisibility = ProtoBacked, ProtoAppNotebook["initialVisibility"]>; export declare const NotebookCellSchema: z.ZodObject<{ cellKey: z.ZodString; type: z.ZodEnum<["markdown", "sql", "python", "input", "chart", "table", "single_value"]>; name: z.ZodOptional; definition: z.ZodRecord; presentation: z.ZodOptional>; }, "strip", z.ZodTypeAny, { type: "table" | "markdown" | "sql" | "python" | "input" | "chart" | "single_value"; definition: Record; cellKey: string; name?: string | undefined; presentation?: Record | undefined; }, { type: "table" | "markdown" | "sql" | "python" | "input" | "chart" | "single_value"; definition: Record; cellKey: string; name?: string | undefined; presentation?: Record | undefined; }>; export type NotebookCell = ProtoBacked, ProtoNotebookCell>; export declare const NotebookLayoutColumnSchema: z.ZodObject<{ cellKey: z.ZodString; colStart: z.ZodNumber; colEnd: z.ZodNumber; }, "strip", z.ZodTypeAny, { cellKey: string; colStart: number; colEnd: number; }, { cellKey: string; colStart: number; colEnd: number; }>; export type NotebookLayoutColumn = ProtoBacked, ProtoNotebookLayoutColumn>; export declare const NotebookLayoutRowSchema: z.ZodObject<{ rowKey: z.ZodString; position: z.ZodNumber; columns: z.ZodArray, "many">; }, "strip", z.ZodTypeAny, { columns: { cellKey: string; colStart: number; colEnd: number; }[]; rowKey: string; position: number; }, { columns: { cellKey: string; colStart: number; colEnd: number; }[]; rowKey: string; position: number; }>; export type NotebookLayoutRow = ProtoBacked, ProtoNotebookLayoutRow>; export declare const NotebookTabSchema: z.ZodObject<{ tabKey: z.ZodString; label: z.ZodString; position: z.ZodNumber; layout: z.ZodArray, "many">; }, "strip", z.ZodTypeAny, { columns: { cellKey: string; colStart: number; colEnd: number; }[]; rowKey: string; position: number; }, { columns: { cellKey: string; colStart: number; colEnd: number; }[]; rowKey: string; position: number; }>, "many">; }, "strip", z.ZodTypeAny, { label: string; layout: { columns: { cellKey: string; colStart: number; colEnd: number; }[]; rowKey: string; position: number; }[]; position: number; tabKey: string; }, { label: string; layout: { columns: { cellKey: string; colStart: number; colEnd: number; }[]; rowKey: string; position: number; }[]; position: number; tabKey: string; }>; export type NotebookTab = ProtoBacked, ProtoNotebookTab>; export declare const NotebookPayloadSchema: z.ZodObject<{ cells: z.ZodArray; name: z.ZodOptional; definition: z.ZodRecord; presentation: z.ZodOptional>; }, "strip", z.ZodTypeAny, { type: "table" | "markdown" | "sql" | "python" | "input" | "chart" | "single_value"; definition: Record; cellKey: string; name?: string | undefined; presentation?: Record | undefined; }, { type: "table" | "markdown" | "sql" | "python" | "input" | "chart" | "single_value"; definition: Record; cellKey: string; name?: string | undefined; presentation?: Record | undefined; }>, "many">; tabs: z.ZodOptional, "many">; }, "strip", z.ZodTypeAny, { columns: { cellKey: string; colStart: number; colEnd: number; }[]; rowKey: string; position: number; }, { columns: { cellKey: string; colStart: number; colEnd: number; }[]; rowKey: string; position: number; }>, "many">; }, "strip", z.ZodTypeAny, { label: string; layout: { columns: { cellKey: string; colStart: number; colEnd: number; }[]; rowKey: string; position: number; }[]; position: number; tabKey: string; }, { label: string; layout: { columns: { cellKey: string; colStart: number; colEnd: number; }[]; rowKey: string; position: number; }[]; position: number; tabKey: string; }>, "many">>; }, "strip", z.ZodTypeAny, { cells: { type: "table" | "markdown" | "sql" | "python" | "input" | "chart" | "single_value"; definition: Record; cellKey: string; name?: string | undefined; presentation?: Record | undefined; }[]; tabs?: { label: string; layout: { columns: { cellKey: string; colStart: number; colEnd: number; }[]; rowKey: string; position: number; }[]; position: number; tabKey: string; }[] | undefined; }, { cells: { type: "table" | "markdown" | "sql" | "python" | "input" | "chart" | "single_value"; definition: Record; cellKey: string; name?: string | undefined; presentation?: Record | undefined; }[]; tabs?: { label: string; layout: { columns: { cellKey: string; colStart: number; colEnd: number; }[]; rowKey: string; position: number; }[]; position: number; tabKey: string; }[] | undefined; }>; export type NotebookPayload = ProtoBacked, ProtoNotebookPayload>; export declare const AppNotebookSchema: z.ZodObject<{ notebookKey: z.ZodString; version: z.ZodNumber; title: z.ZodString; description: z.ZodOptional; icon: z.ZodOptional; initialVisibility: z.ZodOptional>; notebook: z.ZodObject<{ cells: z.ZodArray; name: z.ZodOptional; definition: z.ZodRecord; presentation: z.ZodOptional>; }, "strip", z.ZodTypeAny, { type: "table" | "markdown" | "sql" | "python" | "input" | "chart" | "single_value"; definition: Record; cellKey: string; name?: string | undefined; presentation?: Record | undefined; }, { type: "table" | "markdown" | "sql" | "python" | "input" | "chart" | "single_value"; definition: Record; cellKey: string; name?: string | undefined; presentation?: Record | undefined; }>, "many">; tabs: z.ZodOptional, "many">; }, "strip", z.ZodTypeAny, { columns: { cellKey: string; colStart: number; colEnd: number; }[]; rowKey: string; position: number; }, { columns: { cellKey: string; colStart: number; colEnd: number; }[]; rowKey: string; position: number; }>, "many">; }, "strip", z.ZodTypeAny, { label: string; layout: { columns: { cellKey: string; colStart: number; colEnd: number; }[]; rowKey: string; position: number; }[]; position: number; tabKey: string; }, { label: string; layout: { columns: { cellKey: string; colStart: number; colEnd: number; }[]; rowKey: string; position: number; }[]; position: number; tabKey: string; }>, "many">>; }, "strip", z.ZodTypeAny, { cells: { type: "table" | "markdown" | "sql" | "python" | "input" | "chart" | "single_value"; definition: Record; cellKey: string; name?: string | undefined; presentation?: Record | undefined; }[]; tabs?: { label: string; layout: { columns: { cellKey: string; colStart: number; colEnd: number; }[]; rowKey: string; position: number; }[]; position: number; tabKey: string; }[] | undefined; }, { cells: { type: "table" | "markdown" | "sql" | "python" | "input" | "chart" | "single_value"; definition: Record; cellKey: string; name?: string | undefined; presentation?: Record | undefined; }[]; tabs?: { label: string; layout: { columns: { cellKey: string; colStart: number; colEnd: number; }[]; rowKey: string; position: number; }[]; position: number; tabKey: string; }[] | undefined; }>; }, "strip", z.ZodTypeAny, { notebook: { cells: { type: "table" | "markdown" | "sql" | "python" | "input" | "chart" | "single_value"; definition: Record; cellKey: string; name?: string | undefined; presentation?: Record | undefined; }[]; tabs?: { label: string; layout: { columns: { cellKey: string; colStart: number; colEnd: number; }[]; rowKey: string; position: number; }[]; position: number; tabKey: string; }[] | undefined; }; title: string; notebookKey: string; version: number; description?: string | undefined; icon?: string | undefined; initialVisibility?: "hidden" | "visible" | undefined; }, { notebook: { cells: { type: "table" | "markdown" | "sql" | "python" | "input" | "chart" | "single_value"; definition: Record; cellKey: string; name?: string | undefined; presentation?: Record | undefined; }[]; tabs?: { label: string; layout: { columns: { cellKey: string; colStart: number; colEnd: number; }[]; rowKey: string; position: number; }[]; position: number; tabKey: string; }[] | undefined; }; title: string; notebookKey: string; version: number; description?: string | undefined; icon?: string | undefined; initialVisibility?: "hidden" | "visible" | undefined; }>; export type AppNotebook = ProtoBacked, ProtoAppNotebook>; export declare const GetNotebooksInputSchema: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>; export type GetNotebooksInput = ProtoBacked, ProtoGetNotebooksInput>; export declare const GetNotebooksResponseSchema: z.ZodObject<{ notebooks: z.ZodArray; icon: z.ZodOptional; initialVisibility: z.ZodOptional>; notebook: z.ZodObject<{ cells: z.ZodArray; name: z.ZodOptional; definition: z.ZodRecord; presentation: z.ZodOptional>; }, "strip", z.ZodTypeAny, { type: "table" | "markdown" | "sql" | "python" | "input" | "chart" | "single_value"; definition: Record; cellKey: string; name?: string | undefined; presentation?: Record | undefined; }, { type: "table" | "markdown" | "sql" | "python" | "input" | "chart" | "single_value"; definition: Record; cellKey: string; name?: string | undefined; presentation?: Record | undefined; }>, "many">; tabs: z.ZodOptional, "many">; }, "strip", z.ZodTypeAny, { columns: { cellKey: string; colStart: number; colEnd: number; }[]; rowKey: string; position: number; }, { columns: { cellKey: string; colStart: number; colEnd: number; }[]; rowKey: string; position: number; }>, "many">; }, "strip", z.ZodTypeAny, { label: string; layout: { columns: { cellKey: string; colStart: number; colEnd: number; }[]; rowKey: string; position: number; }[]; position: number; tabKey: string; }, { label: string; layout: { columns: { cellKey: string; colStart: number; colEnd: number; }[]; rowKey: string; position: number; }[]; position: number; tabKey: string; }>, "many">>; }, "strip", z.ZodTypeAny, { cells: { type: "table" | "markdown" | "sql" | "python" | "input" | "chart" | "single_value"; definition: Record; cellKey: string; name?: string | undefined; presentation?: Record | undefined; }[]; tabs?: { label: string; layout: { columns: { cellKey: string; colStart: number; colEnd: number; }[]; rowKey: string; position: number; }[]; position: number; tabKey: string; }[] | undefined; }, { cells: { type: "table" | "markdown" | "sql" | "python" | "input" | "chart" | "single_value"; definition: Record; cellKey: string; name?: string | undefined; presentation?: Record | undefined; }[]; tabs?: { label: string; layout: { columns: { cellKey: string; colStart: number; colEnd: number; }[]; rowKey: string; position: number; }[]; position: number; tabKey: string; }[] | undefined; }>; }, "strip", z.ZodTypeAny, { notebook: { cells: { type: "table" | "markdown" | "sql" | "python" | "input" | "chart" | "single_value"; definition: Record; cellKey: string; name?: string | undefined; presentation?: Record | undefined; }[]; tabs?: { label: string; layout: { columns: { cellKey: string; colStart: number; colEnd: number; }[]; rowKey: string; position: number; }[]; position: number; tabKey: string; }[] | undefined; }; title: string; notebookKey: string; version: number; description?: string | undefined; icon?: string | undefined; initialVisibility?: "hidden" | "visible" | undefined; }, { notebook: { cells: { type: "table" | "markdown" | "sql" | "python" | "input" | "chart" | "single_value"; definition: Record; cellKey: string; name?: string | undefined; presentation?: Record | undefined; }[]; tabs?: { label: string; layout: { columns: { cellKey: string; colStart: number; colEnd: number; }[]; rowKey: string; position: number; }[]; position: number; tabKey: string; }[] | undefined; }; title: string; notebookKey: string; version: number; description?: string | undefined; icon?: string | undefined; initialVisibility?: "hidden" | "visible" | undefined; }>, "many">; }, "strip", z.ZodTypeAny, { notebooks: { notebook: { cells: { type: "table" | "markdown" | "sql" | "python" | "input" | "chart" | "single_value"; definition: Record; cellKey: string; name?: string | undefined; presentation?: Record | undefined; }[]; tabs?: { label: string; layout: { columns: { cellKey: string; colStart: number; colEnd: number; }[]; rowKey: string; position: number; }[]; position: number; tabKey: string; }[] | undefined; }; title: string; notebookKey: string; version: number; description?: string | undefined; icon?: string | undefined; initialVisibility?: "hidden" | "visible" | undefined; }[]; }, { notebooks: { notebook: { cells: { type: "table" | "markdown" | "sql" | "python" | "input" | "chart" | "single_value"; definition: Record; cellKey: string; name?: string | undefined; presentation?: Record | undefined; }[]; tabs?: { label: string; layout: { columns: { cellKey: string; colStart: number; colEnd: number; }[]; rowKey: string; position: number; }[]; position: number; tabKey: string; }[] | undefined; }; title: string; notebookKey: string; version: number; description?: string | undefined; icon?: string | undefined; initialVisibility?: "hidden" | "visible" | undefined; }[]; }>; export type GetNotebooksResponse = ProtoBacked, ProtoGetNotebooksResponse>; export interface NotebookExtensionProvider { getNotebooks(ctx: Context, input: GetNotebooksInput): GetNotebooksResponse | Promise; } export declare function createNotebookExtensionV1(provider: NotebookExtensionProvider): ExtensionDefinition; export {}; //# sourceMappingURL=notebook.d.ts.map