import * as t from "../types.js";
import { Effect } from "../gen/interfaces/metatype-typegraph-runtimes.js";
import Policy from "../policy.js";
import { Materializer, Runtime } from "./mod.js";
interface FunMat extends Materializer {
    code: string;
    secrets: string[];
    effect: Effect;
}
interface ImportMat extends Materializer {
    name: string;
    module: string;
    secrets: string[];
    effect: Effect;
}
interface PredefinedFuncMat extends Materializer {
    name: string;
}
export interface DenoFunc {
    code: string | Function;
    secrets?: Array<string>;
    effect?: Effect;
}
export interface DenoImport {
    name: string;
    module: string;
    secrets?: Array<string>;
    effect?: Effect;
}
export declare class DenoRuntime extends Runtime {
    constructor();
    func<I extends t.Typedef = t.Typedef, O extends t.Typedef = t.Typedef>(inp: I, out: O, { code, secrets, effect }: DenoFunc): t.Func<I, O, FunMat>;
    import<I extends t.Typedef = t.Typedef, O extends t.Typedef = t.Typedef>(inp: I, out: O, { name, module, effect, secrets }: DenoImport): t.Func<I, O, ImportMat>;
    identity<I extends t.Typedef = t.Typedef>(inp: I): t.Func<I, t.Typedef, PredefinedFuncMat>;
    static<P extends t.Typedef>(out: P, value: any): t.Func<t.Struct<{}>, P, {
        _id: number;
    }>;
    policy(name: string, _code: string): Policy;
    policy(name: string, data: Omit<DenoFunc, "effect">): Policy;
    importPolicy(data: Omit<DenoImport, "effect">, name?: string): Policy;
}
export {};
