import type { ApiMethods, TelegramLinkPreviewOptions } from '@puregram/api'; type ParamsOf = M extends (params: infer P) => unknown ? NonNullable

: never; type ParseMode = NonNullable['parse_mode']>; /** params broadly shared across methods, sensible to default globally via `'*'` */ export interface CommonDefaultableParams { parse_mode?: ParseMode; link_preview_options?: TelegramLinkPreviewOptions; disable_notification?: boolean; protect_content?: boolean; allow_paid_broadcast?: boolean; message_effect_id?: string; business_connection_id?: string; } /** * per-call defaults merged into every outgoing api call. set once on the client. * `'*'` applies to any method that accepts the param; a per-method key (typed to * that method's params) overrides `'*'`, and an explicit call-site value wins over both */ export type DefaultParams = { [M in keyof ApiMethods]?: Partial>; } & { '*'?: Partial; }; export declare function mergeDefaultParams(defaults: DefaultParams | undefined, method: string, callParams: Record | undefined, accepts: readonly string[] | undefined): Record | undefined; export {}; //# sourceMappingURL=default-params.d.ts.map