import { App } from "./App.js"; import { Stack, StackProps } from "./Stack.js"; export declare function stack(app: App, fn: FunctionalStack, props?: StackProps & { id?: string; }): any; export declare function use(stack: FunctionalStack): T; export declare function dependsOn(stack: FunctionalStack): void; export declare function getStack(stack: FunctionalStack): Stack; export declare type StackContext = { app: App; stack: Stack; }; export declare type FunctionalStack = (this: Stack, ctx: StackContext) => T | Promise;