UNPKG

@versatiles/google-cloud

Version:
22 lines (21 loc) 677 B
import type { Server } from 'http'; import type { AbstractBucket } from './bucket/index.js'; /** * Interface defining the options for starting the server. */ export interface ServerOptions { baseUrl: string; bucket: AbstractBucket | string; bucketPrefix: string; fastRecompression: boolean; localDirectory?: string; rewriteRules: [string, string][]; port: number; verbose: boolean; } /** * Starts an Express server with specified options. * @param opt - Configuration options for the server. * @returns A promise resolving to the Express server instance. */ export declare function startServer(opt: ServerOptions): Promise<Server | null>;