export interface BaseOptions {
    /**
     * When silent is enabled, the output of staticgen is not piped to stdout
     */
    silent?: boolean;
    /**
     * When exitOnFail is enabled, the host process calling generate will also get terminated
     */
    exitOnFail?: boolean;
    /**
     * working directory
     */
    chdir?: string;
}
export interface GenerateOptions extends BaseOptions {
    /**
     * directory is the static website output directory. Defaults to "build".
     */
    directory?: string;
    /**
     * Timeout of website generation
     */
    timeout?: string;
    /**
     * Allow404 can be enabled to opt-in to pages resulting in a 404,
     * which otherwise lead to an error.
     */
    allow404?: boolean;
    /**
     * Concurrency is the number of concurrent pages to crawl. Defaults to 30.
     */
    concurrency?: number;
    /**
     * URL is the target website to crawl. Defaults to "http://127.0.0.1:3000".
     */
    url?: string;
    /**
     * Pages is a list of paths added to crawl, typically
     * including unlinked pages such as error pages,
     * landing pages and so on.
     */
    pages: string[];
}
export interface ServeOptions extends BaseOptions {
    address?: string;
}
export declare const generate: ({ silent, exitOnFail, chdir, timeout, directory, allow404, concurrency, url, pages, }?: GenerateOptions) => void;
export declare const serve: ({ address, chdir, exitOnFail, silent, }?: ServeOptions) => void;
