import { l } from '@atproto/lex'; import * as LabelDefs from '../../com/atproto/label/defs.defs.js'; import * as ThemeBasic from './theme/basic.defs.js'; declare const $nsid = "site.standard.publication"; export { $nsid }; /** A publication record representing a blog, website, or content platform. Publications serve as containers for documents and define the overall branding and settings. */ type Main = { $type: 'site.standard.publication'; /** * Simplified publication theme for tools and apps to utilize when displaying content. */ basicTheme?: ThemeBasic.Main; /** * Brief description of the publication. */ description?: string; /** * Square image to identify the publication. Should be at least 256x256. */ icon?: l.BlobRef; /** * Self-label values for this publication. Effectively content warnings. */ labels?: l.$Typed | l.Unknown$TypedObject; /** * Name of the publication. */ name: string; /** * Object containing platform specific preferences (with a few shared properties). */ preferences?: Preferences; /** * Base publication url (ex: https://standard.site). The canonical document URL is formed by combining this value with the document path. */ url: l.UriString; }; export type { Main }; /** A publication record representing a blog, website, or content platform. Publications serve as containers for documents and define the overall branding and settings. */ declare const main: l.RecordSchema<"tid", "site.standard.publication", l.Validator, Omit>>; export { main }; export declare const $type = "site.standard.publication"; export declare const $isTypeOf: (value: TValue) => value is l.TypedRecord<"site.standard.publication", TValue>; export declare const $build: { (input: Omit, "$type">): { $type: "site.standard.publication"; basicTheme?: ThemeBasic.Main; description?: string; icon?: l.BlobRef; labels?: l.$Typed | l.Unknown$TypedObject; name: string; preferences?: Preferences; url: l.UriString; }; (input: Omit, "$type">): { $type: "site.standard.publication"; basicTheme?: ThemeBasic.Main; description?: string; icon?: l.BlobRef; labels?: l.$Typed | l.Unknown$TypedObject; name: string; preferences?: Preferences; url: l.UriString; }; }; export declare const $assert: (input: unknown, options?: l.ValidateOptions) => asserts input is { $type: "site.standard.publication"; basicTheme?: ThemeBasic.Main; description?: string; icon?: l.BlobRef; labels?: l.$Typed | l.Unknown$TypedObject; name: string; preferences?: Preferences; url: l.UriString; }; export declare const $check: (input: unknown, options?: l.ValidateOptions) => void; export declare const $cast: (input: I, options?: l.ValidateOptions) => I & { $type: "site.standard.publication"; basicTheme?: ThemeBasic.Main; description?: string; icon?: l.BlobRef; labels?: l.$Typed | l.Unknown$TypedObject; name: string; preferences?: Preferences; url: l.UriString; }; export declare const $ifMatches: (input: I, options?: l.ValidateOptions) => (I & { $type: "site.standard.publication"; basicTheme?: ThemeBasic.Main; description?: string; icon?: l.BlobRef; labels?: l.$Typed | l.Unknown$TypedObject; name: string; preferences?: Preferences; url: l.UriString; }) | undefined; export declare const $matches: (input: I, options?: l.ValidateOptions) => input is I & { $type: "site.standard.publication"; basicTheme?: ThemeBasic.Main; description?: string; icon?: l.BlobRef; labels?: l.$Typed | l.Unknown$TypedObject; name: string; preferences?: Preferences; url: l.UriString; }; export declare const $parse: (input: unknown, options?: l.ParseOptions) => { $type: "site.standard.publication"; basicTheme?: ThemeBasic.Main; description?: string; icon?: l.BlobRef; labels?: l.$Typed | l.Unknown$TypedObject; name: string; preferences?: Preferences; url: l.UriString; }; export declare const $safeParse: (input: unknown, options?: l.ParseOptions) => l.ValidationResult<{ $type: "site.standard.publication"; basicTheme?: ThemeBasic.Main; description?: string; icon?: l.BlobRef; labels?: l.$Typed | l.Unknown$TypedObject; name: string; preferences?: Preferences; url: l.UriString; }>; export declare const $validate: (input: I, options?: l.ValidateOptions) => I & { $type: "site.standard.publication"; basicTheme?: ThemeBasic.Main; description?: string; icon?: l.BlobRef; labels?: l.$Typed | l.Unknown$TypedObject; name: string; preferences?: Preferences; url: l.UriString; }; export declare const $safeValidate: (input: I, options?: l.ValidateOptions) => l.ValidationResult | l.Unknown$TypedObject; name: string; preferences?: Preferences; url: l.UriString; }>; type Preferences = { $type?: 'site.standard.publication#preferences'; /** * Boolean which decides whether the publication should appear in discovery feeds. */ showInDiscover?: boolean; }; export type { Preferences }; declare const preferences: l.TypedObjectSchema<"site.standard.publication#preferences", l.Validator>; export { preferences }; //# sourceMappingURL=publication.defs.d.ts.map