/** * Prepend any AppSync directive declarations that aren't already present in * the user's SDL. Skip-if-present keeps schemas that already declare them * (e.g. authoring tools that emit their own header) from tripping * "Directive @X already defined". */ export declare function withAwsAuthDirectives(sdl: string): string; export interface GenerateSdkOptions { /** Path or glob to the GraphQL schema SDL. */ schema: string; /** Output directory for generated files. */ output: string; /** Optional path or glob to .graphql operation documents. */ operations?: string; /** Working directory used to resolve relative paths. Defaults to process.cwd(). */ cwd?: string; /** Emit a filter builder helper module. Defaults to true. */ emitFilterBuilder?: boolean; /** Emit operations manifest JSON. Defaults to true. */ emitManifest?: boolean; /** * Emit an `auth.ts` re-export module that pulls auth providers from the * `/auth` subpath of `@kattebak/graphql-sdk-emitter`. Defaults to true. * * The subpath import is the entire point: re-exporting from the bare `.` * entry pulls in `@graphql-codegen/cli` etc. as runtime deps for any * consumer that imports from the generated SDK — tens of MB of unrelated * tooling and a tree-shaking minefield for browser/Lambda bundlers (#3). */ emitAuth?: boolean; } export interface GenerateSdkResult { outputDir: string; files: string[]; } export declare function generateSdk(options: GenerateSdkOptions): Promise; //# sourceMappingURL=generate.d.ts.map