export type DbosNativeStatus = "ENQUEUED" | "DELAYED" | "PENDING" | "SUCCESS" | "ERROR" | "CANCELLED" | "MAX_RECOVERY_ATTEMPTS_EXCEEDED";
export interface DbosWorkflowRecord {
    readonly workflowId: string;
    readonly workflowKind: string;
    readonly status: DbosNativeStatus;
    readonly createdAt?: string;
    readonly updatedAt?: string;
    readonly output?: unknown;
    readonly error?: unknown;
}
export interface DbosStartRequest {
    readonly workflowId: string;
    readonly workflowKind: string;
    readonly input: unknown;
    readonly idempotencyKey: string;
    readonly correlationId: string;
    readonly operationId: string;
}
export interface DbosRuntime {
    start(request: DbosStartRequest): Promise<DbosWorkflowRecord>;
    get(workflowId: string): Promise<DbosWorkflowRecord | undefined>;
    cancel(workflowId: string): Promise<void>;
}
export type RegisteredDbosWorkflow = (input: unknown) => Promise<unknown>;
export interface DbosWorkflowRegistry {
    resolve(workflowKind: string): RegisteredDbosWorkflow | undefined;
}
interface DbosSdkWorkflowHandle {
    workflowID(): string;
    getStatus(): Promise<DbosSdkWorkflowStatus | null>;
}
interface DbosSdkWorkflowStatus {
    workflowID?: string;
    workflowUUID?: string;
    workflowName?: string;
    status: DbosNativeStatus;
    createdAt?: string;
    updatedAt?: string;
    output?: unknown;
    error?: unknown;
}
export interface DbosSdkSurface {
    startWorkflow(target: RegisteredDbosWorkflow, params: {
        workflowID: string;
        workflowAttributes: Readonly<Record<string, unknown>>;
    }): (input: unknown) => Promise<DbosSdkWorkflowHandle>;
    getWorkflowStatus(workflowId: string): Promise<DbosSdkWorkflowStatus | null>;
    cancelWorkflow(workflowId: string, options?: {
        cancelChildren?: boolean;
    }): Promise<void>;
}
/**
 * Structural bridge for @dbos-inc/dbos-sdk 4.25.x.
 *
 * Keeping the SDK surface structural lets this provider remain the only place that
 * understands DBOS mechanics while preventing SDK classes from entering AWP ports.
 */
export declare class DbosSdkRuntime implements DbosRuntime {
    private readonly dbos;
    private readonly registry;
    constructor(dbos: DbosSdkSurface, registry: DbosWorkflowRegistry);
    start(request: DbosStartRequest): Promise<DbosWorkflowRecord>;
    get(workflowId: string): Promise<DbosWorkflowRecord | undefined>;
    cancel(workflowId: string): Promise<void>;
}
export {};
//# sourceMappingURL=dbos-bridge.d.ts.map