import "../_dnt.polyfills.js";
import { type Materializer, Runtime } from "./mod.js";
import { Func, type Typedef } from "../types.js";
import type { SubstantialBackend, SubstantialOperationData, WorkflowFileDescription, WorkflowKind } from "../gen/typegraph_core";
interface StartFunc {
    secrets?: string[];
}
export declare class SubstantialRuntime extends Runtime {
    #private;
    backend: SubstantialBackend;
    constructor(backend: SubstantialBackend, fileDescriptions: Array<WorkflowFileDescription>);
    _genericSubstantialFunc(data: SubstantialOperationData): Func<Typedef, Typedef, Materializer>;
    start(kwargs: Typedef, { secrets }?: StartFunc): Func<Typedef, Typedef, Materializer>;
    startRaw({ secrets }?: StartFunc): Func<Typedef, Typedef, Materializer>;
    stop(): Func<Typedef, Typedef, Materializer>;
    send(payload: Typedef): Func<Typedef, Typedef, Materializer>;
    sendRaw(): Func<Typedef, Typedef, Materializer>;
    queryResources(): Func<Typedef, Typedef, Materializer>;
    queryResults(output: Typedef): Func<Typedef, Typedef, Materializer>;
    queryResultsRaw(): Func<Typedef, Typedef, Materializer>;
    advancedFilters(): Func<Typedef, Typedef, Materializer>;
    internals(): Record<string, Func<Typedef, Typedef, Materializer>>;
}
export declare class Backend {
    static devMemory(): SubstantialBackend;
    static devFs(): SubstantialBackend;
    static redis(connectionStringSecret: string): SubstantialBackend;
}
export declare class WorkflowFile {
    readonly file: string;
    readonly kind: WorkflowKind;
    deps: Array<string>;
    private workflows;
    private constructor();
    static deno(file: string, deps?: Array<string>): WorkflowFile;
    static python(file: string, deps?: Array<string>): WorkflowFile;
    import(names: Array<string>): WorkflowFile;
    build(): WorkflowFileDescription;
}
export {};
