import type { FunctionContext } from "./context.js"; import type { FunctionError } from "./error.js"; import type { OAuthFlowStep } from "./extension.js"; export declare const protobufPackage = "channel.app.sdk.v1"; export interface NativeFunctionRequest { method?: string | undefined; params?: any | undefined; context?: FunctionContext | undefined; systemVersion?: string | undefined; } export interface NativeFunctionResponse { result?: any | undefined; error?: FunctionError | undefined; } export interface IssueTokenParams { secret?: string | undefined; channelId?: string | undefined; } export interface IssueTokenResult { accessToken?: string | undefined; refreshToken?: string | undefined; expiresIn?: number | undefined; } export interface ExtensionRegistrationParams { appId?: string | undefined; extensionName?: string | undefined; systemVersion?: string | undefined; } export interface ExtensionRegistrationResult { success?: boolean | undefined; errorMessage?: string | undefined; validationErrors?: string[] | undefined; } export interface AlfTaskRegistrationResult { success?: boolean | undefined; errorMessage?: string | undefined; totalTasks?: number | undefined; createdCount?: number | undefined; updatedCount?: number | undefined; deletedCount?: number | undefined; } export interface AlfTaskVersion { id?: string | undefined; name?: string | undefined; version?: string | undefined; } export interface GetAlfTaskVersionsResult { success?: boolean | undefined; errorMessage?: string | undefined; tasks?: AlfTaskVersion[] | undefined; } export interface AppNotebookRegistrationResult { success?: boolean | undefined; errorMessage?: string | undefined; syncRunId?: string | undefined; status?: string | undefined; totalNotebooks?: number | undefined; createdCount?: number | undefined; updatedCount?: number | undefined; deletedCount?: number | undefined; } export interface AppNotebookVersion { notebookKey?: string | undefined; version?: number | undefined; latestRevisionId?: string | undefined; updatedAt?: string | undefined; } export interface GetAppNotebookVersionsResult { success?: boolean | undefined; errorMessage?: string | undefined; notebooks?: AppNotebookVersion[] | undefined; } /** Manager-authenticated OAuth onboarding state. Never contains provider credentials. */ export interface OAuthFlow { id?: string | undefined; /** before, oauth, after, completed, or canceled. */ phase?: string | undefined; expiresAt?: string | undefined; key?: string | undefined; targetAuthScope?: string | undefined; authorizationURL?: string | undefined; /** False for another manager's read-only view or a flow that must be restarted. */ canResume?: boolean | undefined; steps?: OAuthFlowStep[] | undefined; } export interface GetOAuthFlowParams { flowId?: string | undefined; language?: string | undefined; } export interface ResumeOAuthFlowParams { flowId?: string | undefined; resumeNonce?: string | undefined; language?: string | undefined; } export interface CancelOAuthFlowParams { flowId?: string | undefined; language?: string | undefined; } export interface OAuthFlowResult { flow?: OAuthFlow | undefined; } //# sourceMappingURL=native.d.ts.map