import { AssetCode } from "aws-cdk-lib/aws-lambda"; export declare type Command = { command: string; args: string[]; env: Record; }; declare type BundleResult = { handler: string; } & ({ asset: AssetCode; } | { directory: string; }); export declare type Instructions = { shouldBuild?: (files: string[]) => boolean; build: () => Promise; bundle: () => Promise; run: Command; watcher: { include: string[]; ignore: string[]; }; checks?: Record Promise>; }; export declare type Issue = { location: { file: string; column?: number; line?: number; length?: number; }; message: string; }; export declare type Opts = { id: string; root: string; runtime: string; srcPath: string; handler: string; bundle?: T | false; }; export declare type Definition = (opts: Opts) => Instructions; export declare function buildAsync(opts: Opts, cmd: Command): Promise; export declare function buildAsyncAndThrow(opts: Opts, cmd: Command): Promise; export {};